package com.wsc.staticproxy.ver04;

import com.wsc.staticproxy.ver01.Tank;

public class Main {
    public static void main(String[] args) {
        Tank tank = new Tank();

        TankTimeProxy timeProxy = new TankTimeProxy(tank);
        /// 记录运行时间
        // timeProxy.move();

        // 记录运行时间以及日志
        TankLogProxy logProxy = new TankLogProxy(timeProxy);
        logProxy.move();

        /// 只记录日志
       /* TankLogProxy log = new TankLogProxy(tank);
        log.move();*/
    }
}
